<template>
  <div>
    <!-- <el-button :type="type" :size="size"><slot /></el-button> -->
    <!-- <el-button v-bind="{ type, size }"><slot /></el-button> -->
    <el-button v-bind="$attrs" v-on="$listeners"><slot /></el-button>
    <!-- <el-button v-bind="$attrs" @click="xxx" @aaa="xxx"><slot /></el-button> -->
    <!-- <el-button v-bind="$attrs" v-on="{ click: xxx, aaa: xxx }"><slot /></el-button> -->
  </div>
</template>

<script>
export default {
  name: "ButtonComp",
  mounted() {
    console.log(this.$attrs);
  },
  // props: {
  //   type: String,
  //   size: String,
  // },
};
</script>

<style></style>
